import { instance, request } from "./request";

//获取运单列表
export const getOrderList = (data) => {
  return instance({
    url: "/Order/orderList",
    method: "post",
    data,
  });
};

//确认下单
export const confirmOrder = (data) => {
  return instance({
    url: "/Order/confirmOrder",
    method: "post",
    data,
  });
};
//删除订单
export const delOrder = (data) => {
  return instance({
    url: "/Order/delOrder",
    method: "post",
    data,
  });
};
//订单详情
export const detailsOrder = (data) => {
  return instance({
    url: "/Order/detailsOrder",
    method: "post",
    data,
  });
};
//订单导出
export const exportOrder = (data) => {
  return instance({
    url: "/Order/exportOrder",
    method: "post",
    data,
  });
};
//打印面单
export const printOrder = (data) => {
  return request({
    url: "/index/printOrder",
    method: "post",
    data,
  });
};
//订单轨迹
export const trackOrder = (data) => {
  return instance({
    url: "/Order/trackOrder",
    method: "post",
    data,
  });
};
//修改物流单号
export const upWaybillNo = (data) => {
  return instance({
    url: "/Order/upWaybillNo",
    method: "post",
    data,
  });
};

//修改详情
export const upOrder = (data) => {
  return instance({
    url: "/Order/upOrder",
    method: "post",
    data,
  });
};

//修改地址
export const addressCheck = (data) => {
  return instance({
    url: "/Order/address_check",
    method: "post",
    data,
  });
};

//修改地址
export const getNavNum = (data) => {
  return instance({
    url: "/Order/navNum",
    method: "post",
    data,
  });
};
